package cn.yuli.commad.impl;

import cn.yuli.commad.Command;
import cn.yuli.receiver.Light;
/**
 * 命令对象实现类：打开点灯
 * @author yuli
 *
 */
public class LightOnCommand implements Command {
	Light light;
	public LightOnCommand(Light light) {
		this.light = light;
	}
	@Override
	public void excute() {
		light.on();
	}
	@Override
	public void undo() {
		light.off();
	}

}
